package services

import (
	"fmt"
	"goend/sqldb"
)

func GetNewList() []string {
	fmt.Println("services")
	return sqldb.GetNew()
}
func GetVideoByKinds(kinds string) map[int]string {
	resmap := make(map[int]string)
	kind := "city"
	if kinds == "2" {
		kind = "city"
	} else if kinds == "3" {
		kind = "beach"
	} else if kinds == "4" {
		kind = "river"
	} else if kinds == "5" {
		kind = "sky"
	} else if kinds == "6" {
		kind = "star"
	}
	res := sqldb.GetVideoByKinds(kind)
	for k, v := range res {
		resmap[k] = v
	}
	return resmap
}
